<?php

namespace App\Http\Requests;

use App\Rules\NotNullArrayValue;
use App\Rules\UniqueArrayValue;
use Illuminate\Foundation\Http\FormRequest;

class TestRequest extends BaseFormRequest
{

    public function rules()
    {
        return [
            'arr'=>['required','array',new UniqueArrayValue('email'),new NotNullArrayValue('email','name','邮箱')],
        ];
    }
}
